window.Wine = Backbone.Model.extend({
	urlRoot: "http://localhost/slimphp/api/wines",
	
	defaults: {
		"id"         : null,
		"name"       : "",
		"grapes"     : "",
		"country"    : "USA",
		"region"     : "Florida",
		"year"       : "",
		"description": "",
		"picture"    : ""
	}
});

window.WineCollection = Backbone.Collection.extend({
	model: Wine,
	url: "http://localhost/slimphp/api/wines"
});
